package praktikumid.w06.p5;

public abstract class Animal extends Organism {
	
	private int noOfLegs;
	
	public int getNoOfLegs() {
		// .....
		// .....
		
		return noOfLegs; // int
	}
	
	public void setNoOfLegs(int noOfLegs) {
		if(noOfLegs >= 0) {
			this.noOfLegs = noOfLegs;
		}
		else {
			System.out.println("Must be non-negative integer");
		}
		
	}
	
	public void makeNoise() {
		System.out.println("Making noise...");
	}

}
